package com.yt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Classname PayController
 * @Description
 * @Date 2021/10/19 13:55
 * @Create by 杨涛
 */
@RestController
public class PayController {
    @Value("${server.port}")
    private String port;
    @RequestMapping("/getport")
    public String getPort(){
        return "spring to zookeeper port"+port+" id:"+ UUID.randomUUID().toString();
    }
}
